package com.seo.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 数据类型
 * 
 * @author shibeilei
 * @version 2017.12.13 11:42
 */
@Data
@ApiModel(value = "返回类")
public class ReturnPack<T> {

	@ApiModelProperty(value = "code")
	private int code;
	@ApiModelProperty(value = "描述")
	private String msg;

	@ApiModelProperty(value = "对象")
	private T data;

	public static <K> ReturnPack<K> init() {
		return new ReturnPack<K>();
	}

}
